package com.travel.feign;

import com.travel.dto.HotelOrderDto;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;

@FeignClient("order-service")
public interface OrderFeign {

    @PostMapping("hotelOrder/generateOrder")
    @ApiOperation(value = "生成订单",notes = "生成订单")
    HashMap<String, String> generateOrder(HotelOrderDto hotelOrderDto);

    @GetMapping("/createOrder")
    String createOrder();

}
